package com.wanjia.seal.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanjia.seal.manager.entity.OperatorUser;
import com.wanjia.seal.manager.entity.OperatorUserVoReturn;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Repository
public interface OperatorUserMapper extends BaseMapper<OperatorUser> {


    //@Select("select count(*) from OPERATORTB o,BANKINFOTB b where o.BANKID=b.BANKID limit #{pageNum}-1,#{pageSize}")
    //@Select("select o.*,b.* from OPERATORTB o,BANKINFOTB b where o.BANKID=b.BANKID")
   // IPage<Map<String,Object>> SelectUserPro(Page<Map<String,Object>> page, @Param(Constants.WRAPPER)Wrapper<Map<String,Object>> queryWrapper);
    List<OperatorUserVoReturn> SelectUserPro(String OperatorID,String BankID,Integer pageNum, Integer pageSize);

    OperatorUser selectByBankID(String BankID);
    //OperatorUserVoReturn selectByOperatorID(String OperatorID, Integer pageNum, Integer pageSize);

    Integer selectByOperatorIDCount(String OperatorID,String BankID);
}
